package com.dream.service.user.domain.entity;

import java.io.Serializable;

/**
 * Created by kangd on 2016/4/7.
 */
public class Token implements Serializable{
    private String token;
    private long starttime;
    private long endtime;

    public Token() {
    }

    public Token(String token, long starttime,long validTime) {
        this.token = token;
        this.starttime = starttime;
        this.endtime = this.starttime + validTime;
    }

    public String getValue() {
        return token;
    }

    public void setValue(String token) {
        this.token = token;
    }

    public long getStarttime() {
        return starttime;
    }

    public void setStarttime(long starttime) {
        this.starttime = starttime;
    }

    public long getEndtime() {
        return endtime;
    }

    public void setEndtime(long endtime) {
        this.endtime = endtime;
    }
}
